import { createRouter, createWebHashHistory } from 'vue-router'
import HomeView from '../pages/HomeView.vue'
import SystemLog from '../pages/SystemLog.vue'
import TechSupport from '../pages/TechSupport.vue'

const routes = [
  {
    path: "/",
    redirect: "/home",
  },
  {
    path: '/home',
    name: 'home',
    component: HomeView,
  },
  {
    path: '/syslogs',
    name: 'syslogs',
    component: SystemLog
  },
  {
    path: '/techsupport',
    name: 'techsupport',
    component: TechSupport
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
